package com.zhijian.wharf.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 系统角色与菜单关联信息
 *
 * @author Auto Generator
 * @date 2022-01-22 15:37:49
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "系统角色与菜单关联信息")
public class RoleMenu {
    /**
     * 自增主键
     */
    @ApiModelProperty(value = "自增主键", hidden = true)
    private Long id;

    /**
     * 角色Id
     */
    @ApiModelProperty("角色Id")
    @NotNull(message = "角色Id不能为空")
    private Long roleId;

    /**
     * 关联菜单Id
     */
    @ApiModelProperty("关联菜单Id")
    @NotNull(message = "关联菜单Id不能为空")
    private Long menuId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", hidden = true)
    private Date updateTime;
}